Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 8 Feb 2025 20:45:34 +0000 (21:45 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 8 Feb 2025 20:45:34 +0000 (21:45 +0100)
commit82a6651b466c96eba0a6dddd3ad1907054b527d1
tree82a2f284fb9214a636926db0a6ea94e99e7aaff1
parent630080ae4d3f62474564c03fed887f71fbe54c26
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas